package redis

import (
	"context"
	"zuhao-seucre/internal/enums"
	"zuhao-seucre/internal/service"

	"zuhao-seucre/api/redis/v1"
)

func (c *ControllerV1) RedisDashbord(ctx context.Context, req *v1.RedisDashbordReq) (res *v1.RedisDashbordRes, err error) {

	count := service.Tag().GetAccountTagCount(ctx, enums.ResourceTypeRedis)
	res = new(v1.RedisDashbordRes)
	res.RedisNum = count
	return
}
